
    let baseURL = 'http://www.itcbc.com:8080'
    $.ajaxPrefilter(function (option) {
        option.url = baseURL + option.url
        option.headers = {
            Authorization: localStorage.getItem('token')
        },
        option.complete= function (xhr) {
            // console.log(xhr)
            let res = xhr.responseJSON
            // console.log(res)
            if (res && res.status === 1 && res.message === '身份认证失败') {
                layer.msg('进入失败')
                localStorage.removeItem('token')
                window.parent.location.href = '../login.html'
            }
            }
            console.log(option)
})
